<?php

namespace app\api\model;

use think\Model;

class Admin extends Model
{
    public static function getAdminByUsername($username)
    {
        return self::where('username', $username)->find();
    }
}
